Ejemplo n.º 1
0
        [ProducesResponseType(StatusCodes.Status500InternalServerError)]                                 // if something unexpectedly went wrong with the database or http request/response
        public async Task <ActionResult <Furs2Feathers.Domain.Models.Claims> > PostClaims(Furs2Feathers.Domain.Models.Claims claims)
        {
            claimsRepo.Add(claims);
            await claimsRepo.SaveChangesAsync();

            return(CreatedAtAction("GetClaims", new { id = claims.ClaimId }, claims));
        }