/// <summary> /// 验证登录名称 唯一性 /// </summary> /// <param name="Name"></param> /// <returns></returns> public string CheckNameIsExist(string Name, int?Id, bool IsEdit) { UserAccessor accessor = new UserAccessor(); string ReturnValue = string.Empty; try { if (!accessor.CheckNameIsExist(Name, Id, IsEdit)) { ReturnValue = "该登录名称已存在!"; } } catch (Exception ex) { ReturnValue = ex.Message; LogError(ex); } return(ReturnValue); }