Example #1
0
 public async Task<Models.User.UserAll> GetUserForUserName(string userName)
 {
     var model = await BLL.UserBLL.GetUserForUserName(userName);
     Models.User.UserAll user = new Models.User.UserAll()
     {
         Approval = model.Approval,
         Attention = model.Attention,
         AttentionIdCard = model.AttentionIdCard,
         BusinessLicense = model.BusinessLicense,
         BusinessState = model.BusinessState,
         Contact = model.Contact,
         ContanctPhone = model.ContanctPhone,
         EnglishName = model.EnglishName,
         EntityName = model.EntityName,
         EthnicMinoritiesName = model.EthnicMinoritiesName,
         IdNumber = model.IdNumber,
         LegelPerson = model.LegelPerson,
         Note = model.Note,
         Phone = model.Phone,
         TheZipCode = model.TheZipCode,
         UnitAddress = model.UnitAddress,
         UnitCode = model.UnitCode,
         UserName=model.UserName,
         UserGroup_Id=model.UserGroup_Id,
         CreateTime=model.CreateTime,
         Id=model.Id
     };
     return user;
 }
Example #2
0
 public async Task<IHttpActionResult> SetUserForUserName(string userName, Models.User.UserAll model)
 {
     await BLL.UserBLL.SetUserForUserName(userName, new SealSystem.Models.User()
     {
         Approval = model.Approval,
         Attention = model.Attention,
         AttentionIdCard = model.AttentionIdCard,
         BusinessLicense = model.BusinessLicense,
         BusinessState = model.BusinessState,
         Contact = model.Contact,
         ContanctPhone = model.ContanctPhone,
         EnglishName = model.EnglishName,
         EntityName = model.EntityName,
         EthnicMinoritiesName = model.EthnicMinoritiesName,
         IdNumber = model.IdNumber,
         LegelPerson = model.LegelPerson,
         Note = model.Note,
         Phone = model.Phone,
         TheZipCode = model.TheZipCode,
         UnitAddress = model.UnitAddress,
         UnitCode = model.UnitCode,
     });
     return Ok(new Models.ResponseData() { code = 200, Data = "更新成功" });
 }