public IActionResult AddContact([FromBody] Models contact) { if (contact == null) { return(NoContent()); } var status = _services.AddNewContact(contact); if (!status) { return(BadRequest()); } return(Ok()); }