public ActionResult AddEditEmployeeToProject(int Id = 0)
        {
            var EmpList = _employeeModelFactory.PrepareEmployeeList();

            ViewBag.Employees = new SelectList(EmpList, "Id", "FullName")
            {
            };

            var ProjectList = _projectModelFactory.PrepareProjectList();

            ViewBag.Projects = new SelectList(ProjectList, "Id", "Name")
            {
            };

            EmployeeToProjectEntity employeeEntity = new EmployeeToProjectEntity();

            if (Id > 0)
            {
                employeeEntity = _employeeModelFactory.PrepareEmployeeToProjectModelById(Id);
            }
            return(View(employeeEntity));
        }
 public JsonResult GetAllProject()
 {
     return(Json(_projectModelFactory.PrepareProjectList(), JsonRequestBehavior.AllowGet));
 }