/// <summary> /// Подробная информация по МЦ /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult MaterialActiveDetail(int id) { var materialActive = materialActiveService.GetMaterialActiveById(id); if (materialActive != null) { var model = new MaterialActiveViewModel(materialActive); return(View(model)); } return(RedirectToAction("Distribution")); }
public ActionResult ShortMaterialActiveInformation(int materialId) { var model = new MaterialActiveViewModel(materialActiveService.GetMaterialActiveById(materialId)); return(PartialView("Partial/ShortMaterialActiveInfo", model)); }