public List <string> GetListOfDate_id(string day) { var modelProperty = date.GetType().GetProperty("Date_Id").Name; query = string.Format("SELECT * FROM date WHERE day = '{0}'", day); var receivedData = msSqlDataAccess.GetSingleColumnDataList(query, modelProperty); return(receivedData); }