Пример #1
0
 public frmActionService(int action = -1, int objID = -1)
 {
     InitializeComponent();
     _action     = action;
     _objID      = objID;
     _objectData = gtService.GetByID(objID);
 }
Пример #2
0
        public ActionResult Detail(int id)
        {
            var result = ServiceTypeService.GetByID(id);
            var model  = new ServiceModel()
            {
                Service      = result.Data ?? new Service(),
                ServiceTypes = EnumCollection.GetServiceTypeEnum()
            };

            return(View(model));
        }