Exemplo n.º 1
0
        public async Task <Logic.Validators.StudentValidationResult> CreateAccount([FromBody] Logic.ViewModels.StudentVM studentToCreate)
        {
            if (studentToCreate == null)
            {
                return(new Logic.Validators.StudentValidationResult()
                {
                    ValidationSuccess = false
                });
            }

            Logic.Providers.StudentProvider provider = new Logic.Providers.StudentProvider();

            var result = await provider.SaveStudent(_connectionUtility, studentToCreate);

            return(result);
        }
Exemplo n.º 2
0
 public string CreateUserAccount(Logic.ViewModels.StudentVM studentToCreate)
 {
     return($"{Dns.GetHostName()}");
 }