Ejemplo n.º 1
0
 /// <summary>
 /// Loads the boards data.
 /// </summary>
 public Response loadBoardsData(UserService us)
 {
     try
     {
         bController = new BoardController(us.getUcontroller());
         bController.LoadData();
         bController.Ucontroller = us.getUcontroller();
         return(new Response());
     }
     catch (KanbanException e)
     {
         log.Warn("could not load the boards, Error:" + e.Message);
         return(new Response(e.Message));
     }
     catch (Exception e)
     {
         log.Error("could not load the boards, Error:" + e.Message);
         return(new Response(e.Message));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:IntroSE.Kanban.Backend.ServiceLayer.BoardService"/> class.
 /// </summary>
 /// <param name="u">U.</param>
 public BoardService(UserService u)
 {
     this.bController = new BoardController(u.getUcontroller());
     this.uService    = u;
 }