public async Task <IActionResult> Create([Bind("Id,Name,Cpf,Rg,Tel,Cel,Email,Address")] Owner owner)
        {
            if (ModelState.IsValid)
            {
                _context.Add(owner);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(owner));
        }
Example #2
0
 public async Task InsertAsync(Tenant obj)
 {
     _context.Add(obj);
     await _context.SaveChangesAsync();
 }
Example #3
0
 public async Task InsertAsync(Propertie obj)
 {
     _context.Add(obj);
     await _context.SaveChangesAsync();
 }