Пример #1
0
 /// <summary>
 /// 用户登录
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public async Task <EmployeeQueryDto> EmployeeLogin(string userId)
 {
     return(await _employeeRespository.SingleAsync(e => e.UserId == userId && e.IsDelete == false,
                                                   e => new EmployeeQueryDto {
         Id = e.Id, Name = e.Name, Password = e.Password, UserId = e.UserId, Salt = e.Salt
     }));
 }