public entity.Seller Parse(mod.Seller seller) { entity.Seller c = new entity.Seller(); c.Name = seller.name; if (c.Id == null) { c.Id = seller.Id; } return(c); }
public mod.Seller Parse(entity.Seller seller) { if (seller != null) { return(new mod.Seller { name = seller.Name, Id = seller.Id }); } else { return(new mod.Seller()); } }