SearchModel.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Microsoft.EntityFrameworkCore.Metadata.Internal;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace GreenTree.Strohrmann.ERP.Web.Models.Shared
  7. {
  8. public class SearchModel
  9. {
  10. #region Properties
  11. /// <summary>
  12. /// Path of the model property
  13. /// </summary>
  14. public string ModelPropertyPath { get; set; }
  15. /// <summary>
  16. /// Term to be searched for
  17. /// </summary>
  18. public string SearchTerm { get; set; }
  19. #endregion
  20. #region Ctor
  21. /// <summary>
  22. /// Initializes a new instance of the SearchModel class
  23. /// </summary>
  24. public SearchModel() { }
  25. /// <summary>
  26. /// Initializes a new instance of the SearchModel class
  27. /// </summary>
  28. /// <param name="modelPropertyPath">The path of the model property.</param>
  29. public SearchModel(string modelPropertyPath)
  30. {
  31. ModelPropertyPath = modelPropertyPath;
  32. }
  33. #endregion
  34. }
  35. }