예제 #1
0
 public void Init(ProvinceUpdateCommand command)
 {
     Id             = command.Id;
     Prefix         = "";
     ProvinceName   = command.ProvinceName;
     ProvinceNameEN = command.ProvinceNameEN;
     Status         = EnumDefine.CommonStatusEnum.Active;
     ShortName      = "";
     Priority       = 1;
     Latitude       = command.Latitude;
     Longitude      = command.Longitude;
     RegionId       = 1;
     UpdatedDateUtc = command.UpdatedDateUtc;
     CreatedDateUtc = new DateTime(2018, 03, 14, 11, 46, 02);
     CreatedUid     = "";
     UpdatedUid     = command.UpdatedUid;
 }
예제 #2
0
        public async Task <CommandResult> SendCommand(ProvinceUpdateCommand command)
        {
            CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command);

            return(commandResult);
        }