public IActionResult Put([FromBody] Customer customer) { var temp = _customerDatabase.GetById(customer.Id); if (temp == null) { return(NotFound()); } _customerDatabase.Update(customer); return(Ok(customer)); }