public IHttpActionResult GetAllTask() { _TaskBO = new TaskBO(); var tasks = _TaskBO.GetAllTask(); return(Ok(tasks)); }