public ActionResult GetProducts()
 {
     try
     {
         var data = rep.GetAll();
         return(Json(data, JsonRequestBehavior.AllowGet));
     }
     catch (Exception xcp)
     {
         throw;
     }
 }
Example #2
0
 public List <Catergory> GetCatergories()
 {
     return(repository.GetAll("Categories").ToList());
 }
Example #3
0
 public List <Supplier> GetSuppliers()
 {
     return(repository.GetAll("Suppliers").ToList());
 }
Example #4
0
 public List <Product> GetProducts()
 {
     return(repository.GetAll("Products").ToList());
 }
Example #5
0
        public Department[] GetAllDepartments()
        {
            Department[] departments = _repository.GetAll().ToArray();

            return(departments);
        }
Example #6
0
        public Employee[] GetAllEmployees()
        {
            Employee[] employees = _repository.GetAll().ToArray();

            return(employees);
        }