Beispiel #1
0
        public List <TaskModel> GetAllTask()
        {
            taskMgrBusiness = new TaskManagerBusiness();
            var result = taskMgrBusiness.GetAllTask();

            return(result);
        }
Beispiel #2
0
        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();
        }