Exemplo n.º 1
0
        public async Task <ActionResult> Delete(MasterSlider model)
        {
            try
            {
                SliderRepository Repository = new SliderRepository();
                var result = await Repository.DeleteSlider(model.ID);

                if (result == true)
                {
                    return(await GetList());
                }
                else
                {
                    return(View(result));
                }
            }
            catch
            {
                return(View(false));
            }
        }