示例#1
0
        public async Task <IActionResult> OnPostAddClassificationAsync()
        {
            if (ModelState.IsValid)
            {
                var respone = await articalService.AddArticalClassificationAsync(AddArticalClassificationDto).ConfigureAwait(false);

                if (respone.Succeeded)
                {
                    return(RedirectToPage());
                }
            }
            return(Page());
        }
示例#2
0
 public async Task <Result> AddArticalClassificationAsync(AddArticalClassificationDto dto)
 {
     return(await articalService.AddArticalClassificationAsync(dto));
 }