public string UpdateAliasName() { AliasNameManager manager = new AliasNameManager(); AliasNameModel model = new AliasNameModel(); model.BOId = Request["BOID"]; model.Name = Request["NAME"]; model.AppDomain = Request["APPDOMAIN"]; model.CreatUser = Request["CREATUSER"]; model.UploadDate = System.DateTime.Parse(Request["UPLOADDATE"]); if (manager.Exist(model)) { return("NO"); } else { try { manager.Update(model); return("OK"); } catch { return("false"); } } }
public string AddAliasName() { AliasNameManager manager = new AliasNameManager(); AliasNameModel model = new AliasNameModel(); model.BOId = Request["BOID"]; model.Name = Request["NAME"]; model.AppDomain = Request["APPDOMAIN"]; if (manager.Exist(model)) { return("NO"); } else { try { manager.Add(model); return("OK"); } catch { return("false"); } } }