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)); }
public async Task InsertAsync(Tenant obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Propertie obj) { _context.Add(obj); await _context.SaveChangesAsync(); }