public IHttpActionResult UpdatePost(FilmCategoryViewModel model) { var response = new SimpleResponse(); response = iFilmCategoryBusiness.Update(model); return(Json(response)); }
public IActionResult UpdatePost(FilmCategoryViewModel model) { var response = iFilmCategoryBusiness.Update(model); if (response.ResponseCode > 0) { return(RedirectToAction("Index")); } else { ModelState.AddModelError(string.Empty, response.ResponseMessage); return(View("Edit", model)); } }
public SimpleResponse Update(FilmCategoryDto dto) { var response = new SimpleResponse(); try { var model = SimpleMapper.Map <FilmCategoryDto, FilmCategoryViewModel>(dto); response = iFilmCategoryBusiness.Update(model); } catch (Exception ex) { response.ResponseCode = BusinessResponseValues.InternalError; response.ResponseMessage = "Güncelleme iþleminde hata oluþtu."; SimpleFileLogger.Instance.Error(ex); } return(response); }
public SimpleResponse Update(FilmCategoryViewModel model) { var response = iFilmCategoryBusiness.Update(model); return(response); }