public IHttpActionResult GetTaskByProjectId(int projectId)
        {
            var taskBL   = new TaskBL(_context);
            var allTasks = taskBL.GetByProjectId(projectId);
            var tasks    = (from ts in allTasks
                            from pts in allTasks
                            .Where(x => x.TaskId == ts.ParentId)
                            .DefaultIfEmpty()
                            select new
            {
                TaskId = ts.TaskId,
                TaskName = ts.TaskName,
                Priority = ts.Priority,
                StartDate = ts.StartDate.ToString("dd-MM-yyyy"),
                EndDate = ts.EndDate.ToString("dd-MM-yyyy"),
                ParentTaskName = pts?.TaskName,
                EndTask = ts.EndTask,
                IsParent = ts.IsParent
            }).ToList();

            return(Ok(tasks));
        }