contact form implementation

This commit is contained in:
2024-05-01 23:25:49 +05:30
parent 62ead2b2fe
commit 26e7bd5d44
7 changed files with 77 additions and 11 deletions
+5
View File
@@ -7,6 +7,7 @@ import { IResume } from '../resume/resume.model';
import { IBlog } from '../blog/blog.model';
import { IProjects } from '../projects/projects.model';
import { ISideBar } from '../contact-sidebar/side-bar.model';
import { IContact } from '../contact/contact.model';
@Injectable({
providedIn: 'root'
@@ -63,4 +64,8 @@ export class CvService {
}
return this.http.get<IBlog>(`/api/v1/cv/GetBlog/${candidateId}`);
}
sendMessage(contact: IContact, candidateId: number): Observable<boolean> {
return this.http.post<boolean>(`/api/v1/cv/SendMessage/${candidateId}`, contact);
}
}