Example #1
0
 public static List <Item> GetSprintItems(int sprintId, string searchTxt)
 {
     using (ManagementSystemEntities db = new ManagementSystemEntities())
     {
         if (searchTxt != "")
         {
             return(ItemsRepositories.GetSprintItems(sprintId).Where(x => x.Name.ToLower().Contains(searchTxt.ToLower())).ToList());
         }
         return(ItemsRepositories.GetSprintItems(sprintId));
     }
 }
Example #2
0
        public static StoryItemsModel GetStoryItemsModel(int storyId, int sprintId)
        {
            StoryItemsModel model = new StoryItemsModel
            {
                StoryId        = storyId,
                StoryItemsList = ItemsRepositories.GetStoryItems(storyId),
                StoryName      = StoriesRepositories.GetStoryById(storyId).Name
            };

            foreach (Item item in model.StoryItemsList)
            {
                item.IsIncludedInSelectedSprint = ItemsRepositories.IsItemInSprint(item.Id, sprintId);
            }
            return(model);
        }
Example #3
0
 public static void AddItemsToSprint(List <Item> sprintItems, int sprintId)
 {
     ItemsRepositories.AddItemsToSprint(sprintItems, sprintId);
 }
Example #4
0
 public static void UpdateItem(Item item)
 {
     ItemsRepositories.UpdateItem(item);
 }
Example #5
0
 public static void InsertSprintItem(SprintItem sprintItem)
 {
     ItemsRepositories.InsertSprintItem(sprintItem);
 }
Example #6
0
 public static Item InsertNewItem(Item item)
 {
     return(ItemsRepositories.InsertNewItem(item));
 }
Example #7
0
 public static Item GetItemById(int id)
 {
     return(ItemsRepositories.GetItemById(id));
 }