Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="items"></param>
 /// <param name="statusId"></param>
 /// <param name="projectId"></param>
 private void PostNewStatusesForItems(List <MappingResultModel> items, string statusId, string projectId)
 {
     foreach (MappingResultModel item in items)
     {
         ItemsService.ChooseStatusForItem(item.GCItemId, statusId);
         var status = ProjectsService.GetSingleStatus(statusId, projectId);
         item.Status.Color = status.Data.Color;
         item.Status.Name  = status.Data.Name;
     }
 }
Esempio n. 2
0
        private GcStatusModel PostNewItemStatus(string gcItemId, string statusId, string projectId)
        {
            ItemsService.ChooseStatusForItem(gcItemId, statusId);
            var status      = ProjectsService.GetSingleStatus(statusId, projectId);
            var statusModel = new GcStatusModel {
                Color = status.Data.Color, Name = status.Data.Name
            };

            return(statusModel);
        }
Esempio n. 3
0
 private void PostNewItemStatus(string gcItemId, string statusId)
 {
     ItemsService.ChooseStatusForItem(gcItemId, statusId);
 }