Beispiel #1
0
        public IEnumerable <ICard> GetCards(long boardId, string columnId)
        {
            var cards = _cards.Where(x => x.BoardId == boardId && x.ColumnId == columnId).ToList();

            if (cards.Any())
            {
                return(cards);
            }

            _columnService.GetColumn(boardId, columnId);
            return(new List <ICard>());
        }
Beispiel #2
0
 public ActionResult <object> Get(long boardId, string id = null)
 {
     try
     {
         if (id == null)
         {
             return(_service.GetColumns(boardId).ToList());
         }
         return((Column)_service.GetColumn(boardId, id));
     }
     catch (NotFoundException ex)
     {
         return(NotFound(ex));
     }
 }
Beispiel #3
0
 public IColumn GetColumn(long boardId, string id)
 {
     return(_columnService.GetColumn(boardId, id));
 }
 public ResponseResult <ColumnDto> GetColumn(int id)
 {
     return(_service.GetColumn(id));
 }