internal static DalLot ToDalLot(OrmLot ormlot) { if (ormlot!=null) return new DalLot() { UserId = ormlot.OrmUserId, TimeBegin = ormlot.TimeBegin, StatysId = ormlot.OrmStatysId, StartPrice = ormlot.StartPrice, Name = ormlot.Name, Id = ormlot.Id, EndPrice = ormlot.EndPrice, Description = ormlot.Description, DateBegin = ormlot.DateBegin, CathegoryId = ormlot.OrmCathegoryId, BuyerName = ormlot.BuyerName }; return null; }
internal static void ToOrmLot(DalLot dallot, OrmLot ormlot) { ormlot.OrmUserId = dallot.UserId; ormlot.TimeBegin = dallot.TimeBegin; ormlot.OrmStatysId = dallot.StatysId; ormlot.StartPrice = dallot.StartPrice; ormlot.Name = dallot.Name; ormlot.Id = dallot.Id; ormlot.EndPrice = dallot.EndPrice; ormlot.Description = dallot.Description; ormlot.DateBegin = dallot.DateBegin; ormlot.OrmCathegoryId = dallot.CathegoryId; ormlot.BuyerName = dallot.BuyerName; }