public JsonResult Post(WX_Account_USER_AUZ _t) { if (WMFactory.WX_Account_USER_AUZ.Insert(_t)) return Json(ResultMsg.Success("新增成功!")); else return Json(ResultMsg.Failure("新增失败,请您重试!")); }
public JsonResult Delete(WX_Account_USER_AUZ _t) { if (WMFactory.WX_Account_USER_AUZ.Delete(s => s.Id == _t.Id )) return Json(ResultMsg.Success("删除成功!")); else return Json(ResultMsg.Failure("删除失败,请您重试!")); }
public JsonResult Put(WX_Account_USER_AUZ _t) { IWX_Account_USER_AUZService service = WMFactory.WX_Account_USER_AUZ; WX_Account_USER_AUZ entity = service.GetById(_t.Id.ToString()); entity = AutoMapper<WX_Account_USER_AUZ, WX_Account_USER_AUZ>.Convert(_t, entity); if (service.Update(entity)) return Json(ResultMsg.Success("更新成功!")); else return Json(ResultMsg.Failure("更新失败,请您重试!")); }