public async Task <ActionResult> Edit(int id, [Bind("Id,Title,Owner")] Todo todo) { var _tenantId = ((ClaimsIdentity)User.Identity).Claims.Where(c => c.Type == "http://schemas.microsoft.com/identity/claims/tenantid").FirstOrDefault().Value; todo.TenantId = _tenantId; await _todoListService.EditAsync(todo); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit(int id, [Bind("Id,Title,Owner")] Todo todo) { await _todoListService.EditAsync(todo); return(RedirectToAction("Index")); }