示例#1
0
 //public void AddOrganisation([FromBody] Organisation organisation) => organisationRepository.Add(organisation);
 public ActionResult <OrganisationDto> PostOrganisation(OrganisationDto organisationDto)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("Invalid Data"));
     }
     organisationRepository.AddOrganisation(organisationDto);
     return(Ok("Added Successfully."));
 }