public class OrdersData : BaseDataAccess, IOrdersData
{
public List<OrderViewModelResponse> GetAllOrders()
{
return (from p in Context.Orders
select new OrderViewModelResponse {
OrderId = p.OrderId,
CreatedDate = p.CreatedDate
Total = p.Total,
SalesRepresentativeAssigned = p.SalesRepresentativeAssigned
}).ToList();
}
}