public ActionResult <Owner> Post([FromBody] Owner owner) { if (string.IsNullOrEmpty(owner.First_name)) { return(BadRequest("Please remember a name!")); } if (string.IsNullOrEmpty(owner.Last_name)) { return(BadRequest("Please remember a last name")); } if (string.IsNullOrEmpty(owner.Adress)) { return(BadRequest("Remember the adress")); } return(_ownerService.CreatOwner(owner)); }