/// <summary>
        /// SEARCH image
        /// </summary>
        /// <param name="q"></param>
        /// <returns>photo list</returns>
        public async Task <IActionResult> SearchMemories(string q)
        {
            if (q == null)
            {
                return(View(new List <Photos>()));
            }
            ViewBag.q = q;

            List <Photos> PhotosList = new List <Photos>();
            AccountUser   user       = await GetLoggedInUser();

            PhotosList = photoRepository.GetPhotosBySearch(q, user.Id);
            return(View(PhotosList));
        }