示例#1
0
        public ActionResult IndexNCT(long?employeeId)
        {
            RelationCollectionViewModel model = new RelationCollectionViewModel {
                Employees = employeeService.GetAll(),
                Relations = service.GetRelationsNCT()
            };

            if (employeeId.HasValue)
            {
                model.Relations = service.GetRelationsByEmployeeNCT(employeeId.Value);
            }

            return(View(model));
        }