Ejemplo n.º 1
0
        public ActionResult Delete(int id, GreetingViewModel viewModel)
        {
            try
            {
                _greetingService.Delete(id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View(viewModel));
            }
        }
Ejemplo n.º 2
0
 public async Task <bool> Delete(int id)
 {
     return(await _greetingService.Delete(id));
 }