public async Task <IActionResult> PostCustomer_Signup([FromBody] Customer customer) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _service.CreateCredentials(customer); return(CreatedAtAction("GetCustomer_Signup", new { id = customer.Id }, customer)); }
public async Task <IActionResult> PostOrganisation([FromBody] Organisation organisation) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } OrganisationDto organisationDto = new OrganisationDto { OrganisationName = organisation.OrganisationName, Email = organisation.Email, ImageUrl = organisation.LogoUrl }; await _service.CreateCredentials(organisation); return(Ok(organisationDto)); }