/// <summary> /// add /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(Manager model) { model.Password = MD5Encrypt.Md5Hex(model.Password); //加密 return(dal.Add(model)); }