public ActionResult SaveForm(string keyValue, string strEntity) { LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>(); try { tempUserIBLL.SaveEntity(keyValue, entity); return(Success("保存成功!")); } catch { return(Fail("身份证号重复!")); } }
public ActionResult WorkSubstituteSaveForm(string keyValue, string orderID, string strEntity) { LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>(); int checkError = tempUserIBLL.WorkSubstituteSaveForm(keyValue, orderID, entity); if (checkError == 2) { return(Fail("该用户在活动中已存在!")); } else { return(Success("保存成功!")); } }
public ActionResult SaveForm(string keyValue, string strEntity, string orderID) { if (string.IsNullOrEmpty(keyValue)) { keyValue = string.Empty; } LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>(); int checkError = orderUsersDetailIBLL.SaveEntity(ref keyValue, entity, orderID); if (checkError == 2) { return(Fail("该用户在活动中已存在!")); } else { return(Success("保存成功!", new{ userid = keyValue })); } }