Exemplo n.º 1
0
        public JsonResult Update(UnitConvert unitConvert)
        {
            unitConvert.Initialization(ObjectInitType.Update, "", HttpContext);
            int result = unitConvertService.Update(unitConvert.Id, unitConvert);

            if (result != 0)
            {
                return(Json(new { messageType = "success", note = AppGlobal.UpdateSuccessMessage }));
            }
            else
            {
                return(Json(new { messageType = "eror", note = AppGlobal.UpdateFailMessage }));
            }
        }