Compare commits
1 Commits
Feature/Le
...
Feature/co
| Author | SHA1 | Date | |
|---|---|---|---|
| a6fdfd13f9 |
@@ -57,4 +57,12 @@ public class ContractingPartyGetListViewModel
|
||||
/// </summary>
|
||||
public ActivationStatus Status { get; set; }
|
||||
|
||||
|
||||
public string Address { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public string NationalId { get; set; }
|
||||
public string RepresentativeName { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -567,7 +567,11 @@ public class PersonalContractingPartyRepository : RepositoryBase<long, PersonalC
|
||||
IsBlock = x.contractingParty.IsBlock == "true",
|
||||
HasInstitutionContract = x.institution.Any(i => i.IsActiveString == "true"),
|
||||
NationalIdOrNationalCode = x.contractingParty.IsLegal == "حقیقی" ? x.contractingParty.Nationalcode : x.contractingParty.NationalId,
|
||||
Status = x.contractingParty.IsActiveString == "true" ? ActivationStatus.Active : ActivationStatus.DeActive
|
||||
Status = x.contractingParty.IsActiveString == "true" ? ActivationStatus.Active : ActivationStatus.DeActive,
|
||||
Address = x.contractingParty.Address,
|
||||
NationalId = x.contractingParty.NationalId,
|
||||
PhoneNumber = x.contractingParty.Phone,
|
||||
RepresentativeName = x.contractingParty.RepresentativeFullName
|
||||
}).ToListAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -29,12 +29,6 @@ public class ContractingPartyController : AdminBaseController
|
||||
Console.WriteLine(watch.Elapsed);
|
||||
return result.ToList();
|
||||
}
|
||||
[HttpGet("t/{name}")]
|
||||
public async Task<List<string>> TestApi(string name)
|
||||
{
|
||||
var res = _contractingPartyApplication.SearchByName(name).Where(x=>x.Contains(name)).ToList();
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// جزئیات طرف حساب حقیقی
|
||||
|
||||
Reference in New Issue
Block a user