public virtual async Task <IActionResult> OnPostAsync() { var dto = ObjectMapper.Map <CreateProductAssetCategoryPeriodViewModel, CreateProductAssetCategoryPeriodDto>(ViewModel); await _service.CreatePeriodAsync(ProductAssetCategoryId, dto); return(NoContent()); }
public virtual Task <ProductAssetCategoryDto> CreatePeriodAsync(Guid productAssetCategoryId, CreateProductAssetCategoryPeriodDto input) { return(_service.CreatePeriodAsync(productAssetCategoryId, input)); }