public IActionResult Update(string id, Credit creditIn) { var credit = _creditService.Get(id); if (credit == null) { return(NotFound()); } _creditService.Update(id, creditIn); return(NoContent()); }