public ActionResult Delete(long id)
        {
            var retorno = _estabelecimentoService.Delete(id);

            Alert(RetornoHelper.RetornoEstabelecimento(retorno), NotificationType.success);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult <Estabelecimento> > DeleteEstabelecimento(Guid id)
        {
            var estabelecimento = await _estabelecimentoService.Selecionar(id);

            if (estabelecimento == null)
            {
                return(NotFound());
            }

            await _estabelecimentoService.Delete(estabelecimento);

            return(estabelecimento);
        }
Ejemplo n.º 3
0
 public async Task <ResultDto <bool> > Delete(int id)
 {
     return(await _estabelecimentoService.Delete(id));
 }