Exemple #1
0
        public IActionResult SearchByMagazineYear(string year)
        {
            var result = _magazineService.GetAllMagazinesBy(x => x.PublishYear == Convert.ToInt32(year));

            if (result.IsOk())
            {
                return(PartialView("Partials/_FoundMagazines", result.Data.OrderBy(x => x.PublishSection).ToList()));
            }

            return(StatusCode((int)result.Status, result.Message));
        }