public void Init(ProductAttributeValueCommand mesage) { Id = mesage.AttributeValueId; AttributeId = mesage.AttributeId; Value = mesage.Value; UnitId = mesage.UnitId; AttributeValueStatus = mesage.AttributeValueStatus; CreatedOnUtc = mesage.CreatedDateUtc; UpdatedOnUtc = mesage.UpdatedOnUtc; CreatedUserId = mesage.CreatedUserId; UpdatedUserId = mesage.UpdatedUserId; DisplayOrder = mesage.DisplayOrder; }
public async Task <CommandResult> SendCommand(ProductAttributeValueCommand command) { var commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }