change Representative selectList

This commit is contained in:
MahanCh
2025-08-06 09:55:33 +03:30
parent 4c4e848f52
commit 473132d66a
2 changed files with 5 additions and 14 deletions

View File

@@ -1,17 +1,8 @@
namespace CompanyManagment.App.Contracts.Representative;
using _0_Framework.Application;
namespace CompanyManagment.App.Contracts.Representative;
/// <summary>
/// ویو مدل سلکت لیست برای معرف
/// </summary>
public class GetSelectListRepresentativeViewModel
{
/// <summary>
/// آیدی
/// </summary>
public long Id { get; set; }
/// <summary>
/// نام معرف
/// </summary>
public string Name { get; set; }
}
public class GetSelectListRepresentativeViewModel:SelectListViewModel;

View File

@@ -289,7 +289,7 @@ public class RepresentativeRepository : RepositoryBase<long, Representative>, IR
return await _context.RepresentativeSet.Select(x => new GetSelectListRepresentativeViewModel()
{
Id = x.id,
Name = x.FullName
Text = x.FullName
}).ToListAsync();
}