Exemplo n.º 1
0
        public IActionResult Delete(Imovel model)
        {
            if (model != null)
            {
                repo.Delete(model);
                return(Ok());
            }

            return(BadRequest());
        }
        public ActionResult Delete(int id)
        {
            repository.Delete(id);

            return(Ok(new
            {
                status = "200",
                msg = "OK",
                obj = new { }
            }));
        }
Exemplo n.º 3
0
 public IActionResult Delete(int id)
 {
     repositoryImovel.Delete(id);
     return(RedirectToAction("Index"));
 }
Exemplo n.º 4
0
 public ActionResult Delete(int id)
 {
     imovelRepository.Delete(id);
     return(Ok(new{ obj = new{} }));
 }
Exemplo n.º 5
0
 public RedirectToActionResult Delete(int id)
 {
     imovelRepository.Delete(id);
     return(RedirectToAction("Index"));
 }