public static Model.OrderList MapOrderLists(Domain.Model.OrderList orderList) { return(new Model.OrderList { LstId = orderList.LstId, LstOrderId = orderList.LstOrderId, LstProdId = orderList.LstProdId }); }
public void AddOrderList(Domain.Model.OrderList orderList) { Model.OrderList entity = Mapper.MapOrderLists(orderList); _dbContext.Add(entity); }