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)); } }
// 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; } }
public List <Task> GetTasks(Task task) { return(taskBL.GetTasks(task)); }
public void GetAll() { var tasks = taskBL.GetTasks(); Assert.NotNull(tasks); }