Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createCategory(vm: Category): Observable<any>{
- vm.Id = 25;
- var body = JSON.stringify(vm);
- var headerOptions = new Headers({ 'Content-Type': 'application/json' });
- return this._http.post('http://localhost:55861/api/CategoryApi', body, {headers: headerOptions }).map(x => x.json());
- }
Add Comment
Please, Sign In to add comment