contact form implementation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user