1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Blazored.LocalStorage;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net.Http;
- using System.Net.Http.Json;
- using System.Threading.Tasks;
- using wispro.sp.entity;
- namespace wispro.sp.web.Services
- {
- public class CalMonthServices
- {
- private readonly IHttpService _httpClient;
-
- public CalMonthServices(IHttpService httpClient)
- {
- _httpClient = httpClient;
-
- }
- public async Task<CalMonth> GetHandlingMonth()
- {
- try
- {
- var data = await _httpClient.Get<CalMonth>($"CalMonth/GetHandlingMonth");
- return data;
- }
- catch
- {
- return null;
- }
- }
- public async Task<List<CalMonth>> GetAll()
- {
- try
- {
- var data = await _httpClient.Get<List<CalMonth>>($"CalMonth/GetAll");
- return data;
- }
- catch
- {
- return null;
- }
- }
- }
- }
|