public async Task Edit(ProjectsEmployeesDTO source, ProjectsEmployeesDTO dest)
        {
            await database.ProjectsEmployees
            .Update(CreateByMapper.CreateProjectEmployeeByMapper(source),
                    CreateByMapper.CreateProjectEmployeeByMapper(dest));

            await database.Save();
        }
        public async Task <IEnumerable <ProjectsEmployeesDTO> > Create(ProjectsEmployeesDTO projectsEmployeesDTO)
        {
            ProjectsEmployees      pe   = CreateByMapper.CreateProjectEmployeeByMapper(projectsEmployeesDTO);
            IEnumerable <Employee> emps = database.Employees.Find(e => e.EmployeeId == pe.EmployeeId);
            IEnumerable <Project>  ps   = database.Projects.Find(p => p.ProjectId == pe.ProjectId);

            if (emps != null && ps != null)
            {
                await database.ProjectsEmployees.Create(pe);

                await database.Save();
            }
            return(null);
        }
        public async Task Delete(ProjectsEmployeesDTO projectsEmployeesDTO)
        {
            await database.ProjectsEmployees.Delete(CreateByMapper.CreateProjectEmployeeByMapper(projectsEmployeesDTO));

            await database.Save();
        }