public IHttpActionResult Put([FromBody] PlanningViewModel planningViewModel) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _planningService.Update(AutoMapperGenerator.Mapper.Map <Planning>(planningViewModel)); return(Ok()); } catch (Exception exception) { //ErrorSignal.FromCurrentContext().Raise(exception); return(InternalServerError(exception)); } }
public async Task <OperationResult> Update([FromBody] PlanningUpdateModel updateModel) { return(await _planningService.Update(updateModel)); }
public PlanningEntity Update(int PlanningId, PlanningEntity planning, int adminId) { return(_planningService.Update(PlanningId, planning, adminId)); }