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