API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PlaceHolderFormatController.cs 745B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Http;
  6. using Microsoft.AspNetCore.Mvc;
  7. using UnivateProperties_API.Model.Misc;
  8. using UnivateProperties_API.Repository;
  9. namespace UnivateProperties_API.Controllers.Misc
  10. {
  11. [Route("api/[controller]")]
  12. [ApiController]
  13. public class PlaceHolderFormatController : ControllerBase
  14. {
  15. private readonly IRepository<PlaceHolderFormat> _Repo;
  16. public PlaceHolderFormatController(IRepository<PlaceHolderFormat> _repo)
  17. {
  18. _Repo = _repo;
  19. }
  20. [HttpGet]
  21. public IActionResult Get()
  22. {
  23. return new OkObjectResult(_Repo.GetAll());
  24. }
  25. }
  26. }