예제 #1
0
        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());
        }
예제 #2
0
 public async Task <Recipient> Update(Recipient transaction)
 {
     return(await _repository.Update(transaction));
 }