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>()); }
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)); } }
public IColumn GetColumn(long boardId, string id) { return(_columnService.GetColumn(boardId, id)); }
public ResponseResult <ColumnDto> GetColumn(int id) { return(_service.GetColumn(id)); }