Example #1
0
        // GET: api/TaskManager/5
        public Project GetProject(int id)
        {
            TaskManagerBL taskManagerBL = new TaskManagerBL();

            DA.Project project = taskManagerBL.ReadProject(id);
            if (project != null)
            {
                return new Project()
                       {
                           Name      = project.Project1,
                           ProjectId = project.Project_ID,
                           EndDate   = project.End_Date.ToString("dd/MM/yyyy"),
                           StartDate = project.Start_Date.ToString("dd/MM/yyyy"),
                           Priority  = project.Priority
                       }
            }
            ;
            return(null);
        }