public List <TaskModel> GetAllTask() { taskMgrBusiness = new TaskManagerBusiness(); var result = taskMgrBusiness.GetAllTask(); return(result); }
public HttpResponseMessage Get() { var tmBusiness = new TaskManagerBusiness(); var result = tmBusiness.GetAllTask(); if (result != null) { return(Request.CreateResponse(HttpStatusCode.OK, result)); } return(Request.CreateResponse(HttpStatusCode.BadRequest, "Unable to get all task details,Please try again later")); }
public void GetAllTask_Benchmark_Performance() { TaskManagerBusiness business = new TaskManagerBusiness(); business.GetAllTask(); }