public IHttpActionResult UpdatePost(FilmActorViewModel model) { var response = new SimpleResponse(); response = iFilmActorBusiness.Update(model); return(Json(response)); }
public ActionResult UpdatePost(FilmActorViewModel model) { var response = iFilmActorBusiness.Update(model); if (response.ResponseCode > 0) { return(RedirectToAction("Index")); } else { ModelState.AddModelError(string.Empty, response.ResponseMessage); return(View("Edit", model)); } }
public SimpleResponse Update(FilmActorDto dto) { var response = new SimpleResponse(); try { var model = SimpleMapper.Map <FilmActorDto, FilmActorViewModel>(dto); response = iFilmActorBusiness.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(FilmActorViewModel model) { var response = iFilmActorBusiness.Update(model); return(response); }