public async Task <IActionResult> OnPostAddClassificationAsync() { if (ModelState.IsValid) { var respone = await articalService.AddArticalClassificationAsync(AddArticalClassificationDto).ConfigureAwait(false); if (respone.Succeeded) { return(RedirectToPage()); } } return(Page()); }
public async Task <Result> AddArticalClassificationAsync(AddArticalClassificationDto dto) { return(await articalService.AddArticalClassificationAsync(dto)); }