Exemplo n.º 1
0
 public ActionResult <Owner> Post([FromBody] Owner owner)
 {
     if (string.IsNullOrEmpty(owner.FirstName))
     {
         return(BadRequest("har bruge for et name"));
     }
     if (string.IsNullOrEmpty(owner.LastName))
     {
         return(BadRequest(""));
     }
     return(_ownerService.CreateAOwner(owner));
 }