Beispiel #1
0
        public bool UpdateBoard(Board model)
        {
            Task.Run(async () =>
            {
                try
                {
                    await project_flux.API.Board.Update(model.id, model.title);
                    return true;
                }
                catch
                {
                    return false;
                }
            }).Wait();

            return false;
        }
Beispiel #2
0
        public bool AddBoard(Board model)
        {
            Task.Run(async () =>
            {
                try
                {
                    await project_flux.API.Board.Add(model.teamId, model.title);
                    return true;
                }
                catch
                {
                    return false;
                }
            }).Wait();

            return false;
        }
Beispiel #3
0
 public Board FindBoard(Guid BoardId)
 {
     Board board = new Board();
     Task.Run(async () =>
     {
         try
         {
             var IBoard = await project_flux.API.Board.GetBoardByID(BoardId);
             board.title = IBoard.Name;
             board.description = "";
             board.id = IBoard.Id;
             //board.teamId = IBoard.TeamId;
             board.jobs = Jobs(IBoard.Id);
         }
         catch { }
     }).Wait();
     return board;
 }
Beispiel #4
0
        public ActionResult AddBoard(Board model)
        {
            ViewBag.action = "AddBoard";
            if (ModelState.IsValid && Context.AddBoard(model)){
                ViewBag.isPost = true;
            }

            return View("Board", model);
        }
Beispiel #5
0
        public ActionResult Board(Guid id, Board model)
        {
            ViewBag.action = "Board";
            model.id = id;
            if (ModelState.IsValid && Context.UpdateBoard(model))
            {
                ViewBag.isPost = true;
            }

            return View(model);
        }