예제 #1
0
        public void Create(LocalRegisterRequestModel register)
        {
            LocalEntity c = new LocalEntity
            {
                Descricao = register.Descricao,
                Endereco  = register.Endereco
            };

            _dbContext.LocalEntity.Add(c);
            _dbContext.SaveChanges();
        }
예제 #2
0
 public RedirectToActionResult Create(LocalRegisterRequestModel local)
 {
     _localService.Create(local);
     TempData["MensagemSucesso"] = "Cadastro efetuado com sucesso!";
     return(RedirectToAction("Locais"));
 }