Пример #1
0
        public ActionResult EditTimnAxis(TimnAxis timnAxis)
        {
            Response _resp = new Response();

            if (ModelState.IsValid)
            {
                _resp = ItimnAxisManager.Update(timnAxis);
            }
            else
            {
                _resp.Code    = 0;
                _resp.Message = General.GetModelErrorString(ModelState);
            }
            return(Json(_resp));
        }
Пример #2
0
        public ActionResult AddTimnAxis([FromBody] TimnAxis timnAxis)
        {
            Response _res = new Response();

            if (ModelState.IsValid)
            {
                _res = ItimnAxisManager.Add(timnAxis);
            }
            else
            {
                _res.Code    = 0;
                _res.Message = General.GetModelErrorString(ModelState);
            }
            return(Json(_res));
        }