public static void EditEntity <T>(T entity, ScrumrContext context, Guid?projectId = null) where T : Entity { var properties = new PropertyBag(); properties.Add("projectId", projectId); var editor = EditEntityBase <T> .Create(context, entity, properties); editor.Show(); }
public static Feature AddFeature(ScrumrContext context, Guid?sprintId = null) { var properties = new PropertyBag(); properties.Add("sprintId", sprintId); var editor = EditEntityBase <Feature> .Create(context, null, properties); return(editor.GetResult()); }
public static T AddEntity <T>(ScrumrContext context, Guid?projectId = null) where T : Entity { var properties = new PropertyBag(); properties.Add("projectId", projectId); var editor = EditEntityBase <T> .Create(context, null, properties); return((T)editor.GetResult()); }
public static void EditTicket(Ticket ticket, ScrumrContext context) { var properties = new PropertyBag(); properties.Add("projectId", ticket.ProjectId); properties.Add("featureId", ticket.FeatureId); var editor = EditEntityBase <Ticket> .Create(context, ticket, properties); editor.Show(); }
public static Ticket AddTicket(ScrumrContext context, Guid?projectId = null, Guid?sprintId = null, Guid?featureId = null) { var properties = new PropertyBag(); properties.Add("projectId", projectId); properties.Add("sprintId", sprintId); properties.Add("featureId", featureId); var editor = EditEntityBase <Ticket> .Create(context, null, properties); return((Ticket)editor.GetResult()); }