コード例 #1
0
    /// <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);
    }
コード例 #2
0
 public async Task <ActionResult> Edit(AuthorsView author)
 {
     try
     {
         var done = _authorsService.Update(_mapper.Map <IAuthors>(author));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
コード例 #3
0
 public async Task <ActionResult> Create(AuthorsView newAthor)
 {
     try
     {
         var done = _authorsService.Edit(_mapper.Map <AuthorsView, IAuthors>(newAthor));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }