VerifyCoefficientController.cs 890 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Microsoft.AspNetCore.Http;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Threading.Tasks;
  8. using wispro.sp.entity;
  9. using Microsoft.AspNetCore.Authorization;
  10. using Microsoft.AspNetCore.Authentication.JwtBearer;
  11. namespace wispro.sp.api.Controllers
  12. {
  13. [Authorize]
  14. [Route("api/[controller]")]
  15. [ApiController]
  16. public class VerifyCoefficientController : ControllerBase
  17. {
  18. spDbContext Context;
  19. public VerifyCoefficientController(spDbContext context)
  20. {
  21. Context = context;
  22. }
  23. public List<VerifyCoefficient> GetAll()
  24. {
  25. var result = Context.VerifyCoefficients.Include(b=>b.DoPerson).Include(b=>b.Checker);
  26. return result.ToList<VerifyCoefficient>();
  27. }
  28. }
  29. }