public ActionResult GetYYYone() { var id = Request["id"] == null ? 0 : Convert.ToInt64(Request["id"]); T_YxPerson temp = T_YxPersonService.LoadEntities(x => x.ID == id).FirstOrDefault(); return(Content(Common.SerializerHelper.SerializeToString(new { serverData = temp, msg = "yes" }))); }
public ActionResult NewAddListYXY(T_YxPerson typ) { typ.AddTime = MvcApplication.GetT_time(); typ.ADDuserID = LoginUser.ID; typ.DEL = 0; if (typ.ID <= 0) { T_YxPersonService.AddEntity(typ); } else { T_YxPersonService.EditEntity(typ); } return(Content("ok")); }