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