Try your search with a different keyword or use * as a wildcard.
using Nop.Core.Domain.Directory;
namespace Nop.Services.Directory;
///
/// Measure dimension service interface
///
public partial interface IMeasureService
{
///
/// Deletes measure dimension
///
/// Measure dimension
/// A task that represents the asynchronous operation
Task DeleteMeasureDimensionAsync(MeasureDimension measureDimension);
///
/// Gets a measure dimension by identifier
///
/// Measure dimension identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the measure dimension
///
Task GetMeasureDimensionByIdAsync(int measureDimensionId);
///
/// Gets a measure dimension by system keyword
///
/// The system keyword
///
/// A task that represents the asynchronous operation
/// The task result contains the measure dimension
///
Task GetMeasureDimensionBySystemKeywordAsync(string systemKeyword);
///
/// Gets all measure dimensions
///
///
/// A task that represents the asynchronous operation
/// The task result contains the measure dimensions
///
Task> GetAllMeasureDimensionsAsync();
///
/// Inserts a measure dimension
///
/// Measure dimension
/// A task that represents the asynchronous operation
Task InsertMeasureDimensionAsync(MeasureDimension measure);
///
/// Updates the measure dimension
///
/// Measure dimension
/// A task that represents the asynchronous operation
Task UpdateMeasureDimensionAsync(MeasureDimension measure);
///
/// Converts dimension
///
/// Value to convert
/// Source dimension
/// Target dimension
/// A value indicating whether a result should be rounded
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertDimensionAsync(decimal value,
MeasureDimension sourceMeasureDimension, MeasureDimension targetMeasureDimension, bool round = true);
///
/// Converts from primary dimension
///
/// Value to convert
/// Target dimension
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertFromPrimaryMeasureDimensionAsync(decimal value,
MeasureDimension targetMeasureDimension);
///
/// Deletes measure weight
///
/// Measure weight
/// A task that represents the asynchronous operation
Task DeleteMeasureWeightAsync(MeasureWeight measureWeight);
///
/// Gets a measure weight by identifier
///
/// Measure weight identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the measure weight
///
Task GetMeasureWeightByIdAsync(int measureWeightId);
///
/// Gets a measure weight by system keyword
///
/// The system keyword
///
/// A task that represents the asynchronous operation
/// The task result contains the measure weight
///
Task GetMeasureWeightBySystemKeywordAsync(string systemKeyword);
///
/// Gets all measure weights
///
///
/// A task that represents the asynchronous operation
/// The task result contains the measure weights
///
Task> GetAllMeasureWeightsAsync();
///
/// Inserts a measure weight
///
/// Measure weight
/// A task that represents the asynchronous operation
Task InsertMeasureWeightAsync(MeasureWeight measure);
///
/// Updates the measure weight
///
/// Measure weight
/// A task that represents the asynchronous operation
Task UpdateMeasureWeightAsync(MeasureWeight measure);
///
/// Converts weight
///
/// Value to convert
/// Source weight
/// Target weight
/// A value indicating whether a result should be rounded
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertWeightAsync(decimal value,
MeasureWeight sourceMeasureWeight, MeasureWeight targetMeasureWeight, bool round = true);
///
/// Converts from primary weight
///
/// Value to convert
/// Target weight
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertFromPrimaryMeasureWeightAsync(decimal value,
MeasureWeight targetMeasureWeight);
///
/// Converts to primary measure dimension
///
/// Value to convert
/// Source dimension
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertToPrimaryMeasureDimensionAsync(decimal value,
MeasureDimension sourceMeasureDimension);
///
/// Converts to primary measure weight
///
/// Value to convert
/// Source weight
///
/// A task that represents the asynchronous operation
/// The task result contains the converted value
///
Task ConvertToPrimaryMeasureWeightAsync(decimal value, MeasureWeight sourceMeasureWeight);
}