コード例 #1
0
 public IActionResult GetAccreditives(ProductQualityFilterRequest request)
 {
     if (ModelState.IsValid)
     {
         var response = new SingleResponse <List <Accreditive> >()
         {
             ResultCode = ResultCodes.normal
         };
         response.Result = _xbService.GetAccreditives(request.Filter);
         return(ResponseExtensions.ToHttpResponse(response));
     }
     else
     {
         return(ValidationError.GetValidationErrorResponse(ModelState));
     }
 }