// GET: Admin/Inspection public ActionResult Index() { var inspection = inspectionRepository.GetInspectionDetails().Select(x => new InspectionModel { ID = x.ID, DateOfInsp = x.DateOfInsp, InspectorAdrs = x.InspectorAdrs, InspectorName = x.InspectorName, InspectorDesg = x.InspectorDesg, PurposeOfInsp = x.PurposeOfInsp, Report = x.Report }); return(View(inspection)); }