/// <summary> /// turn a model orderline into an entity orderline /// </summary> /// <param name="orderline"></param> /// <returns></returns> public static Entities.OrderlineEntity Map(Library.Models.OrderLine orderline) { return(new Entities.OrderlineEntity { BookIsbn = orderline.BookISBN, Quantity = orderline.Quantity }); }
public static OrderLine LibOrderLinesMap(Library.Models.OrderLine orderLine) { return(new OrderLine() { OrderId = orderLine.OrderId, ProductId = orderLine.ProductId, Amount = orderLine.Amount, Location = MapLibLocation(orderLine.Location), Product = MapLibProduct(orderLine.Product) }); }