Guest User

Untitled

a guest
Jan 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. createCategory(vm: Category): Observable<any>{
  2. vm.Id = 25;
  3. var body = JSON.stringify(vm);
  4. var headerOptions = new Headers({ 'Content-Type': 'application/json' });
  5. return this._http.post('http://localhost:55861/api/CategoryApi', body, {headers: headerOptions }).map(x => x.json());
  6. }
Add Comment
Please, Sign In to add comment