public ActionResult <Owner> Post([FromBody] Owner owner) { owner.Id = 0; if (string.IsNullOrEmpty(owner.Address) || string.IsNullOrEmpty(owner.FirstName) || string.IsNullOrEmpty(owner.LastName)) { return(null); } return(_ownerService.AddOwner(owner)); }