public IUser GetUserByName(string name) { if (!String.IsNullOrEmpty(name)) { _users = GetAll(); for (int i = 0; i < _users.Count; i++) { if (name == _users[i].FirstName || name == _users[i].LastName) { _user = DtoConverter.ConvertToUserObject(_dto); } } } return(_user); }
public void CreateTicket(ITicket ticket) { var dto = DtoConverter.ConvertToTicketDto(ticket); DalFactory.TicketRepo.Create(dto); }
public void Edit(IUser user) { DalFactory.UserRepo.Edit(DtoConverter.ConvertToUserDto(user)); }