public async Task <IActionResult> PutStatuses(int id, Statuses statuses) { if (id != statuses.StatusId) { return(BadRequest()); } var response = await _db.UpdateStatuses(id, statuses); return(_responsesService.PutResponse(response)); }
public async Task <IActionResult> PutProfile(int id, Profile profile) { if (id != profile.ProfileNumber) { return(BadRequest()); } var response = await _db.UpdateProfile(id, profile); return(_responsesService.PutResponse(response)); }
public async Task <IActionResult> PutTransactionCodes(int id, TransactionCodes transactionCodes) { if (id != transactionCodes.TransactionCodeId) { return(BadRequest()); } var response = await _db.UpdateTransactionCodes(id, transactionCodes); return(_responsesService.PutResponse(response)); }
public async Task <IActionResult> PutIdentityTypes(int id, IdentityTypes identityTypes) { if (id != identityTypes.IdentityTypeId) { return(BadRequest()); } var response = await _db.UpdateIdentityType(id, identityTypes); return(_responsesService.PutResponse(response)); }
public async Task <IActionResult> PutFuneral(int id, Funeral funeral) { if (id != funeral.FuneralId) { return(BadRequest()); } var response = await _db.UpdateFuneral(id, funeral); return(_responsesService.PutResponse(response)); }