public GetUsersList GetUsersList() { var model = new GetUsersList(); try { var UsersList = _oeUsersRepo.GetAll(); var list = new List <M_Users>(); foreach (var item in UsersList) { var temp = new M_Users() { Id = item.Id, FirstName = item.FirstName, LastName = item.LastName, FullName = item.FirstName + " " + item.LastName, IP300X200 = item.IP300X200, IP600X400 = item.IP600X400, EmailAddress = item.EmailAddress, ContactNo = item.ContactNo, DateOfBirth = item.DateOfBirth, GenderId = item.GenderId, OurEduId = item.OurEduId, Password = item.Password, IsForgetPassword = item.IsForgetPassword, IsActive = item.IsActive, LastEntryDate = item.LastEntryDate, LastLogoutDate = item.LastLogoutDate }; list.Add(temp); } ; model = new GetUsersList() { _Users = list }; } catch (Exception) { } return(model); }
public void GivenIHaveMadeAGetCallToListAllUsers() { ListUserResponse = GetUsersList.getUser(); }