Пример #1
0
        public ActionResult PortDetail(Guid?id)
        {
            Ports ports = new Ports();
            var   port  = _IPortsService.GetAllEnt().Where(t => t.Id == id.Value).FirstOrDefault();

            if (port != null)
            {
                ports = port;
            }
            var model = _ICoefficientService.GetAllEnt().Where(t => t.IsTure && t.PortsID == id);

            ViewBag.ports = ports;
            return(View(model));
        }