Пример #1
0
 public Domain.AggregatesModel.Project Add(Domain.AggregatesModel.Project project)
 {
     if (project.IsTransient())
     {
         return(_context.Add(project).Entity);
     }
     return(project);
 }
Пример #2
0
        public async Task <Domain.AggregatesModel.Project> AddAsync(Domain.AggregatesModel.Project project)
        {
            if (project.IsTransient())
            {
                var result = await _context.AddAsync(project);

                return(result.Entity);
            }
            return(project);
        }