public ProposalItemViewModel(ProposalViewModel proposal, BacklogItem item, BacklogItemGroup group) { this.proposal = proposal; this.Item = item; this.ItemGroup = group; OnPropertyChanged("IsAtProposal"); }
private BacklogItemGroup CreateDefaultGroup(string projectUId, DefaultItemGroups defaultGroup, string name) { if (name == null) { name = defaultGroup.ToString(); } BacklogItemGroup group = new BacklogItemGroup() { GroupColor = "WhiteSmoke", GroupName = name, GroupUId = Guid.NewGuid().ToString(), ProjectUId = projectUId, DefaultGroup = (short)defaultGroup }; if (defaultGroup == DefaultItemGroups.PLAN_GROUP) { group.GroupColor = "Khaki"; } if (defaultGroup == DefaultItemGroups.DELIVERY_GROUP) { group.GroupColor = "Crimson"; } return(group); }
private BacklogItemGroup CreateDefaultGroup(string projectUId, DefaultItemGroups defaultGroup, string name) { if (name == null) name = defaultGroup.ToString(); BacklogItemGroup group = new BacklogItemGroup() { GroupColor = "WhiteSmoke", GroupName = name, GroupUId = Guid.NewGuid().ToString(), ProjectUId = projectUId, DefaultGroup = (short)defaultGroup }; if (defaultGroup == DefaultItemGroups.PLAN_GROUP) group.GroupColor = "Khaki"; if (defaultGroup == DefaultItemGroups.DELIVERY_GROUP) group.GroupColor = "Crimson"; return group; }
public void UpdateBacklogItemGroup(string projectUId, BacklogItemGroup group) { authorizationService.VerifyPermissionAtProject(projectUId, PermissionSets.SCRUM_MASTER); backlogRepository.UpdateBacklogItemGroup(group); }
public void UpdateBacklogItemGroup(BacklogItemGroup group) { using (var context = new ScrumFactoryEntities(this.connectionString)) { BacklogItemGroup oldGroup = context.BacklogItemGroups.Where(g => g.GroupUId == group.GroupUId).SingleOrDefault(); if (oldGroup == null) context.AddObject("BacklogItemGroups", group); else context.ApplyCurrentValues<BacklogItemGroup>("BacklogItemGroups", group); context.SaveChanges(); } }
public void UpdateBacklogItemGroup(string projectUId, BacklogItemGroup group) { var client = ClientHelper.GetClient(authorizator); HttpResponseMessage response = client.Put(Url("Groups/" + projectUId), new ObjectContent<BacklogItemGroup>(group, JsonValueMediaTypeFormatter.DefaultMediaType)); ClientHelper.HandleHTTPErrorCode(response); }