public ActionResult ExportData(long id) { DanhGiaCongViecModel model = new DanhGiaCongViecModel(); HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>(); CongViecBO CongViec = HSCV_CONGVIECBusiness.FindById(id); if (CongViec != null) { model.CongViec = CongViec; PHIEUDANHGIACONGVIECBusiness = Get <PHIEUDANHGIACONGVIECBusiness>(); model.PhieuDanhGia = PHIEUDANHGIACONGVIECBusiness.GetData(id); } else { model.CongViec = new CongViecBO(); model.PhieuDanhGia = new PHIEUDANHGIACONGVIEC(); } return(View("Export", model)); }
public PartialViewResult DetailDanhGia(long id) { DanhGiaCongViecModel model = new DanhGiaCongViecModel(); HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>(); CongViecBO CongViec = HSCV_CONGVIECBusiness.FindById(id); if (CongViec != null) { model.CongViec = CongViec; PHIEUDANHGIACONGVIECBusiness = Get <PHIEUDANHGIACONGVIECBusiness>(); model.PhieuDanhGia = PHIEUDANHGIACONGVIECBusiness.GetData(id); } else { model.CongViec = new CongViecBO(); model.PhieuDanhGia = new PHIEUDANHGIACONGVIEC(); } return(PartialView("_Detail", model)); }