public async Task <ActionResult <string> > Update([FromBody] ShareToUpdate share) { var updatedShare = sharesService.UpdateShare(share); if (updatedShare == null) { return(new ActionResult <string>("Can't update record")); } return(new ActionResult <string>("Record updated")); }