public async Task <IActionResult> Edit([Bind("Id,Name")] TmcTypes types) { try { await _types.UpdateAsync(types); } catch (DbUpdateConcurrencyException) { if (!await _types.ItemExists(x => x.Id == types.Id)) { return(NotFound()); } throw; } return(PartialView("Create", types)); }
public async Task <IActionResult> Create([Bind("Id,Name")] TmcTypes types) { await _types.AddAsync(types); return(PartialView(types)); }