コード例 #1
0
 public async Task <ActionResult <string> > GetClaimStatus([FromQuery] int claimID, [FromQuery] int policyID)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _log4net.Info("GetClaimStatus Method Called");
             return(Ok(_claimRepository.GetClaimStatus(claimID, policyID)));
         }
         else
         {
             _log4net.Info("Model is not valid in GetClaimStatus");
         }
         return(BadRequest());
     }
     catch (Exception e)
     {
         _log4net.Error("Exception in GetClaimStatus" + e.Message);
         return(new NoContentResult());
     }
 }