public IHttpActionResult GetAllInquiries() { WebResponseContentModel <List <InquiryModel> > tmpUser = new WebResponseContentModel <List <InquiryModel> >(); Del <List <InquiryModel> > responseStatusHandler = ProcessContentModel; try { tmpUser.Content = inquiryRepo.GetInquiryList(); responseStatusHandler(tmpUser); } catch (Exception ex) { responseStatusHandler(tmpUser, ex); return(Json(tmpUser)); } return(Json(tmpUser)); }