change Representative selectList
This commit is contained in:
@@ -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;
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user