예제 #1
0
        public SectorTO Add(SectorTO Entity)
        {
            if (Entity is null)
            {
                throw new ArgumentNullException(nameof(Entity));
            }

            var sector = Entity.ToEF();

            return(issuesContext.Sectors.Add(sector).Entity.ToTransfertObject());
        }
예제 #2
0
        public SectorTO Update(SectorTO Entity)
        {
            if (Entity is null)
            {
                throw new ArgumentNullException(nameof(Entity));
            }

            return(issuesContext
                   .Sectors
                   .Update(Entity.ToEF())
                   .Entity
                   .ToTransfertObject());
        }