public static Orders MapToEntity(OrdersWM webModel) { return(new Orders() { OrderID = webModel.OrderID, UserID = webModel.UserID, OrderDate = webModel.OrderDate }); }
public void DeleteOrder(OrdersWM webModel) { try { _ordersOperations.DeleteOrder(OrdersMapping.MapToEntity(webModel)); } catch (Exception ex) { throw new Exception(ex.ToString()); } }