ProductCategoryController.py 871 B

12345678910111213141516171819202122232425262728293031323334
  1. from django.views.decorators.http import require_http_methods
  2. from backend.Service.ProductCategoryService import ProductCategoryService
  3. from backend.Service.ProjectCategoryService import ProjectCategoryService
  4. @require_http_methods(['POST'])
  5. def Create(reqeust):
  6. return ProductCategoryService.Create(reqeust)
  7. @require_http_methods(['POST'])
  8. def Update(reqeust):
  9. return ProductCategoryService.Update(reqeust)
  10. @require_http_methods(['POST'])
  11. def Delete(reqeust):
  12. return ProductCategoryService.Delete(reqeust)
  13. @require_http_methods(['POST'])
  14. def Info(reqeust):
  15. return ProductCategoryService.Info(reqeust)
  16. @require_http_methods(['POST'])
  17. def Search(reqeust):
  18. return ProductCategoryService.Search(reqeust)
  19. @require_http_methods(['POST'])
  20. def All(reqeust):
  21. return ProductCategoryService.getAllCategories()