示例#1
0
        public IHttpActionResult UpdatePost(FilmActorViewModel model)
        {
            var response = new SimpleResponse();

            response = iFilmActorBusiness.Update(model);
            return(Json(response));
        }
示例#2
0
        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));
            }
        }
示例#3
0
        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);
        }