public IActionResult AddSliderForAjax(int PostId) { _postServices.AddSlider(PostId); var model = _postServices.GetSliderList(); return(PartialView("SliderPartial", model)); }
public IEnumerable <SliderDto> GetSliders() { return(_postServices.GetSliderList()); }