public IEnumerable <RMG.Models.Customer> GetAllCustomer() { CustomerContext context = HttpContext.RequestServices.GetService(typeof(RMG.Models.CustomerContext)) as CustomerContext; return(context.GetAllCustomer()); }
public IEnumerable <RMG.Models.Customer> GetAllCustomer() { CustomerContext context = HttpContext.RequestServices.GetService(typeof(RMG.Models.CustomerContext)) as CustomerContext; return(context.GetAllCustomer()); }