public void Add(Customer entity) { if (entity.PortalId == new Guid("{00000000-0000-0000-0000-000000000000}")) { entity.PortalId = Guid.NewGuid(); } this.DbContext.Suppliers.Add(entity); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)