public frmActionService(int action = -1, int objID = -1) { InitializeComponent(); _action = action; _objID = objID; _objectData = gtService.GetByID(objID); }
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)); }