예제 #1
0
        public async Task <IActionResult> GetPendingUserPageAsync(int count               = 10, int page = 0,
                                                                  string sEcho            = null, string searchQuery = null,
                                                                  PendingType pendingType = PendingType.Pending)
        {
            var result =
                await _unitOfWork.PendingUserRepository.GetPagesAsync(count, page, searchQuery);

            return(Ok(new ResponsePageResultModel <ViewPendingUserModel>(_mapper.Map <List <ViewPendingUserModel> >(result),
                                                                         sEcho, result.Count(), result.Count())));
        }
예제 #2
0
 public ViewPendingUserModel(int id,
                             DateTimeOffset modifiedAt,
                             PendingType status,
                             string firstName,
                             string lastName,
                             string email,
                             string userName)
 {
     Id         = id;
     ModifiedAt = modifiedAt;
     Status     = status;
     FirstName  = firstName;
     LastName   = lastName;
     Email      = email;
     UserName   = userName;
 }