CalMonthServices.cs 791 B

12345678910111213141516171819202122232425262728293031323334
  1. using Blazored.LocalStorage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Net.Http;
  6. using System.Net.Http.Json;
  7. using System.Threading.Tasks;
  8. using wispro.sp.entity;
  9. namespace wispro.sp.web.Services
  10. {
  11. public class CalMonthServices
  12. {
  13. private readonly IHttpService _httpClient;
  14. public CalMonthServices(IHttpService httpClient)
  15. {
  16. _httpClient = httpClient;
  17. }
  18. public async Task<CalMonth> GetHandlingMonth()
  19. {
  20. try
  21. {
  22. var data = await _httpClient.Get<CalMonth>($"CalMonth/GetHandlingMonth");
  23. return data;
  24. }
  25. catch
  26. {
  27. return null;
  28. }
  29. }
  30. }
  31. }