public void Init(ProductAttributeCommand mesage) { Id = mesage.Id; Name = mesage.Name; Status = mesage.Status; CreatedOnUtc = mesage.CreatedDateUtc; UpdatedOnUtc = mesage.UpdatedOnUtc; CreatedUserId = mesage.CreatedUserId; UpdatedUserId = mesage.UpdatedUserId; }
public async Task <CommandResult> SendCommand(ProductAttributeCommand command) { var commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }