Esempio n. 1
0
        //Delete Image Slider
        public async Task <IActionResult> DeleteImageSlider(string fileName, int id)
        {
            var response = _vendorSlider.Delete(id);

            if (response.IsSuccess)
            {
                await _cloudStorage.DeleteFileAsync(fileName);
            }

            return(Json(response));
        }
        //Reject (ajax)
        public IActionResult RejectSlider(int id)
        {
            var response = _vendorSlider.Delete(id);

            return(Json(response));
        }