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); }
public string CreateUserAccount(Logic.ViewModels.StudentVM studentToCreate) { return($"{Dns.GetHostName()}"); }