public virtual async Task<IActionResult> OnPostAsync() { var dto = ObjectMapper.Map<EditProductAssetCategoryPeriodViewModel, UpdateProductAssetCategoryPeriodDto>(ViewModel); await _service.UpdatePeriodAsync(ProductAssetCategoryId, PeriodId, dto); return NoContent(); }
public virtual Task <ProductAssetCategoryDto> UpdatePeriodAsync(Guid productAssetCategoryId, Guid periodId, UpdateProductAssetCategoryPeriodDto input) { return(_service.UpdatePeriodAsync(productAssetCategoryId, periodId, input)); }