Esempio n. 1
0
 //Set the Context property to the LawnPaynes Context.
 public BaseController()
 {
     Context = new LawnPaynesContext();
 }
 public GetCustomerLocationQuery(LawnPaynesContext context)
 {
     _context = context;
 }
        //Method to Load a list of Services in a SelectList so that a user can select the service.
        public void Initialize(LawnPaynesContext context)
        {
            var serviceList = context.Services.ToList();

            ServiceSelectListItems = new SelectList(serviceList, "ServiceId", "ServiceName");
        }