public static UserModel GetUserById(Guid Id) { UnitOfWorkRepository unitOfWork = new UnitOfWorkRepository(); var user = unitOfWork.UserRepository.GetUserId(Id); var model = UserModelFactory.ConvertUser(user); return(model); }
public static UserModel GetUser(string username, string password) { UnitOfWorkRepository unitOfWork = new UnitOfWorkRepository(); var user = unitOfWork.UserRepository.GetUser(username, password); var model = UserModelFactory.ConvertUser(user); return(model); }