This commit is contained in:
mmrbnjd
2025-07-26 11:47:32 +03:30
parent 29107ce9c6
commit c045ace959
10 changed files with 88 additions and 64 deletions

View File

@@ -1,4 +1,5 @@
using Common.Dtos.Company;
using Common.Dtos;
using Common.Dtos.Company;
using System.Net.Http.Json;
namespace HushianWebApp.Service
@@ -35,6 +36,11 @@ namespace HushianWebApp.Service
var response = await _baseController.Put($"{BaseRoute}UpdateCompany",dto);
return response.IsSuccessStatusCode;
}
public async Task<bool> ChangePasswordCompany(ChangePasswordDto request)
{
var response = await _baseController.Put($"{BaseRoute}ChangePasswordCompany", request);
return response.IsSuccessStatusCode;
}
//public async Task<bool> AddContentInfo(string str)
//{
// var response = await _baseController.Post($"{BaseRoute}AddContentInfo?ContentInfo={str}");

View File

@@ -46,9 +46,9 @@ namespace HushianWebApp.Service
var response = await _baseController.Put($"{BaseRoute}EditUserYourself", request);
return response.IsSuccessStatusCode;
}
public async Task<Read_ExperDto?> GetCurrentUser() //ویرایش کاربران توسط خود
public async Task<Read_ExperDto?> GetCurrentExper() //ویرایش کاربران توسط خود
{
var response = await _baseController.Get($"{BaseRoute}GetCurrentUser");
var response = await _baseController.Get($"{BaseRoute}GetCurrentExper");
if (response.IsSuccessStatusCode)
{
return await response.Content.ReadFromJsonAsync<Read_ExperDto>();