/// <summary> /// Resets selected filters. /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event Arguments</param> protected void btnResetFilters_Click(object sender, EventArgs e) { YearMonthtree.ClearSelection(); CategoryNodeTree.ClearSelection(); AuthorsView.ClearSelection(); ResourceTypeTree.ClearSelection(); txtFilter.Text = string.Empty; ResourceListView_OnSortButtonClicked(sender, e); }
public async Task <ActionResult> Edit(AuthorsView author) { try { var done = _authorsService.Update(_mapper.Map <IAuthors>(author)); return(RedirectToAction("Index")); } catch { return(View()); } }
public async Task <ActionResult> Create(AuthorsView newAthor) { try { var done = _authorsService.Edit(_mapper.Map <AuthorsView, IAuthors>(newAthor)); return(RedirectToAction("Index")); } catch { return(View()); } }