public async Task <ActionResult <Recipient> > PutRecipient(long id, [FromBody] Recipient recipient) { if (id != recipient.Id) { return(BadRequest()); } _repository.Update(recipient); await _repository.Save(); return(NoContent()); }
public async Task <Recipient> Update(Recipient transaction) { return(await _repository.Update(transaction)); }