Пример #1
0
        /// <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"));
        }
Пример #2
0
        public ActionResult ShortMaterialActiveInformation(int materialId)
        {
            var model = new MaterialActiveViewModel(materialActiveService.GetMaterialActiveById(materialId));

            return(PartialView("Partial/ShortMaterialActiveInfo", model));
        }