Пример #1
0
        public async Task <UserProject> CreateAsync(UserProject userProject)
        {
            db.UserProject.Add(userProject);
            await db.SaveChangesAsync();

            return(userProject);
        }
Пример #2
0
        public async Task <Project> CreateAsync(Project project)
        {
            db.Project.Add(project);
            await db.SaveChangesAsync();

            return(project);
        }