Exemple #1
0
        public Collection <CommonEntities.Tasks> GetTasks(int projectID)
        {
            ProjectManagerEntities mockContext = MockDataSetList();
            var taskBL = new TaskBL(mockContext);
            Collection <CommonEntities.Tasks> tasks = taskBL.GetTasks(projectID);

            return(tasks);
        }
 // GET api/<controller>
 public HttpResponseMessage Get()
 {
     try
     {
         return(Request.CreateResponse(HttpStatusCode.OK, tmBL.GetTasks()));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex));
     }
 }
Exemple #3
0
 // GET: api/Tasks
 public JArray GetTasks()
 {
     try
     {
         var    json      = JsonConvert.SerializeObject(objTaskBL.GetTasks());
         JArray jsonArray = JArray.Parse(json);
         return(jsonArray);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #4
0
 public List <Task> GetTasks(Task task)
 {
     return(taskBL.GetTasks(task));
 }
        public void GetAll()
        {
            var tasks = taskBL.GetTasks();

            Assert.NotNull(tasks);
        }