public async Task <JsonResult> Update(ModifyAreaDto model) { var result = await _areaAppService.Update(model); OutputModel outputModel = new OutputModel(); outputModel.Data = result; return(new JsonResult(outputModel)); }
public IActionResult Put([FromBody] AreaViewModel area) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(area)); } _areaAppService.Update(area); return(Response(area)); }
public ActionResult Edit(AreaViewModel areaViewModel) { _areaAppService.Update(areaViewModel); return(RedirectToAction("Index")); }