Ejemplo n.º 1
0
        public IHttpActionResult UpdatePost(LanguageViewModel model)
        {
            var response = new SimpleResponse();

            response = iLanguageBusiness.Update(model);
            return(Json(response));
        }
Ejemplo n.º 2
0
        public ActionResult UpdatePost(LanguageViewModel model)
        {
            var response = iLanguageBusiness.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(LanguageDto dto)
        {
            var response = new SimpleResponse();

            try
            {
                var model = SimpleMapper.Map <LanguageDto, LanguageViewModel>(dto);
                response = iLanguageBusiness.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(LanguageViewModel model)
        {
            var response = iLanguageBusiness.Update(model);

            return(response);
        }