public static IQueryable <Customer> GetCustomerByIdQuery(DotekaContext context, int id) { return(from c in context.Customers where c.ID.Equals(id) select c); }
public IQueryable <ServiceContract> GetServiceContractByIdQuery(DotekaContext context, int id) { return(from s in context.ServiceContracts where s.ID.Equals(id) select s); }
public CustomerController(DotekaContext context) { this._context = context; }
public ServiceContractController(DotekaContext context) { this._context = context; }