public BursifyUser GetUserInfo(int Id) { using (IUnitOfWork uow = unitOfWorkFactory.CreateUnitOfWork()) { return(userRepository.LoadById(Id)); } }
public void VerifyUser(int userId) { using (IUnitOfWork uow = unitOfWorkFactory.CreateUnitOfWork()) { var user = userRepository.LoadById(userId); user.AccountStatus = "Verified"; uow.Commit(); } }