update foc endpoints

This commit is contained in:
dibakor 2026-08-02 15:58:59 +06:00
parent 874611cd18
commit 472cdf9409
2 changed files with 6 additions and 6 deletions

View File

@ -190,11 +190,11 @@ public class GetDiscountMaterialResponse
public class GetFOCResponse
{
public string SalesOrgcCode { get; set; }
public string? SalesOrgcCode { get; set; }
public string FOCCode { get; set; }
public string FOCName { get; set; }
public string DistributorChannelCode { get; set; }
public string DistributorChannelName { get; set; }
public string? DistributorChannelCode { get; set; }
public string? DistributorChannelName { get; set; }
}

View File

@ -842,11 +842,11 @@ public class MobileMasterDataService : IMobileMasterDataService
{
response.Items.Add(new GetFOCResponse
{
SalesOrgcCode = dr.GetString(0),
SalesOrgcCode =dr.IsDBNull(0) ? null : dr.GetString(0),
FOCCode = dr.GetString(1),
FOCName = dr.GetString(2),
DistributorChannelCode = dr.GetString(3),
DistributorChannelName = dr.GetString(4)
DistributorChannelCode = dr.IsDBNull(3) ? null : dr.GetString(3),
DistributorChannelName = dr.IsDBNull(4) ? null : dr.GetString(4)
});
}
dr.Close();