using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GreenTree.Maschinenbestellungen.Web.Models.Shared
{
    public class SearchModel
    {
        #region Properties

        /// <summary>
        /// Path of the model property
        /// </summary>
        public string ModelPropertyPath { get; set; }

        /// <summary>
        /// Term to be searched for
        /// </summary>
        public string SearchTerm { get; set; }

        #endregion

        #region Ctor

        /// <summary>
        /// Initializes a new instance of the SearchModel class
        /// </summary>
        public SearchModel() {  }

        /// <summary>
        /// Initializes a new instance of the SearchModel class
        /// </summary>
        /// <param name="modelPropertyPath">The path of the model property.</param>
        public SearchModel(string modelPropertyPath) 
        {
            ModelPropertyPath = modelPropertyPath;
        }

        #endregion
    }
}
