Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #5
0
        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));
        }