public IHttpActionResult UpdatePost(FilmCategoryViewModel model)
        {
            var response = new SimpleResponse();

            response = iFilmCategoryBusiness.Update(model);
            return(Json(response));
        }
Ejemplo n.º 2
0
        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));
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public SimpleResponse Update(FilmCategoryViewModel model)
        {
            var response = iFilmCategoryBusiness.Update(model);

            return(response);
        }