public async Task <IActionResult> UpdateTask(int id, [FromBody] WishListeViewModel model) { Result result = await _wishListeGateway.Update(id, model.Task, model.CustomerId, model.StateTask); return(this.CreateResult(result)); }
public async Task <IActionResult> CreateTask([FromBody] WishListeViewModel model) { Result <int> result = await _wishListeGateway.Create(model.Task, model.CustomerId, model.StateTask); return(this.CreateResult(result, o => { o.RouteName = "GetTask"; o.RouteValues = id => new { id }; })); }