public IHttpActionResult GetTenderListByRouteIDAndRecallID(int routeID, int recallID) { WebResponseContentModel <List <TenderPositionModel> > tmpUser = new WebResponseContentModel <List <TenderPositionModel> >(); Del <List <TenderPositionModel> > responseStatusHandler = ProcessContentModel; try { tmpUser.Content = tenderRepo.GetTenderListByRouteIDAndRecallID(routeID, recallID); responseStatusHandler(tmpUser); } catch (Exception ex) { responseStatusHandler(tmpUser, ex); return(Json(tmpUser)); } return(Json(tmpUser)); }