public async Task <Administrator> AddNewAdministratorcAsync(string firstName, string lastName, string email, string password) { if (!validator.ValidateEmail(email) || !validator.ValidatePasswordLength(password)) { throw new ArgumentException(); } var newAdmin = new Administrator() { Id = Guid.NewGuid(), FirstName = firstName, LastName = lastName, Email = email, Password = password }; await administratorRepository.AddNewAdministratorAsync(newAdmin); return(newAdmin); }