예제 #1
0
        public async Task <PartialViewResult> Information(long?specId)
        {
            if (specId != null)
            {
                var it = await SpecFactory.GetOne(specId.Value);

                if (it != null)
                {
                    return(PartialView(it));
                }
            }

            return(PartialView(new TInfo
            {
                OwnerName = UserSecurity.OwnerText(),
                OwnerId = UserSecurity.EmployeeId
            }));
        }
예제 #2
0
 public async Task <ViewResult> ForBuildSpec(long id)
 {
     return(View(new NodesForApp(await _appSpecificationFactory.GetOne(id), await _nodeFactory.GetAssignedToBuildSpec(id), await _nodeFactory.GetEnvironments())));
 }