public bool AddUser(string username) { _uow.UserRepository.Create(new User { Username = username, UserType = UserTypeEnum.User }); _uow.SaveChanges(); return(true); }
public bool CreateThread(string threadName, Guid?creatorID) { _uow.ThreadRepository.Create(new Thread { Title = threadName, CreatorId = creatorID }); _uow.SaveChanges(); return(true); }