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)); }
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)); }