public ActionResult Post([FromBody] Imovel entity)
        {
            repository.Create(entity);

            return(Ok(new
            {
                status = "200",
                msg = "OK",
                obj = entity
            }));
        }
Exemple #2
0
 public IActionResult CreateImovel(Imovel imovel)
 {
     repositoryImovel.Create(imovel);
     return(RedirectToAction("Index"));
 }
Exemple #3
0
 public ActionResult Post([FromBody] Imovel imovel)
 {
     imovelRepository.Create(imovel);
     return(Ok(new{ obj = imovel }));
 }
Exemple #4
0
 public RedirectToActionResult Create(Imovel entity)
 {
     imovelRepository.Create(entity);
     return(RedirectToAction("Index"));
 }
 public RedirectToActionResult Create(Imoveis Imoveis)
 {
     _repository.Create(Imoveis);
     return(RedirectToAction("Index"));
 }