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()); }
public SectorTO Update(SectorTO Entity) { if (Entity is null) { throw new ArgumentNullException(nameof(Entity)); } return(issuesContext .Sectors .Update(Entity.ToEF()) .Entity .ToTransfertObject()); }