public async Task <IActionResult> AddTask(int projectId, String Task, String Des, DateTime S_Date, DateTime E_Date)
        {
            string user        = User.FindFirst("Index").Value;
            var    Currentuser = await _taskRepository.GetCurrentUser(user);

            ViewBag.photo = Currentuser.PhotoURL;
            int empId = Currentuser.EmpId;

            ViewBag.EmpId = empId;
            ViewBag.proj  = new SelectList(await _taskRepository.GetProjects(), "Id", "Name");
            if (projectId == 0)
            {
                return(View());
            }
            else
            {
                Boolean s1 = await _taskRepository.StaffTaskInsert(empId, projectId, Task, Des, S_Date, E_Date);

                if (s1 == true)
                {
                    ViewBag.IsSuccess = true;
                    return(RedirectToAction(nameof(AddTask)));
                }
                return(View());
            }
        }