public async Task <CommandResponse <Location> > Handle(LocationSaveCommand request, CancellationToken cancellationToken)
        {
            var result = new CommandResponse <Location>()
            {
                Errors = GetRequestErrors(request)
            };

            if (result.Errors.Count == 0)
            {
                try
                {
                    var aggregate = new LocationAggregate(_dbContext);
                    await aggregate.LocationSaveAsync(request.Item);

                    result.Result = (Location)request.Item;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);

                    result.ErrorInfo = new ErrorInfo()
                    {
                        UserErrorMessage = "An internal error has occured",
                        HasException     = true
                    };
                }
            }
            return(result);
        }
 public LocationAggregate EffectLocationMedia(LocationAggregate locationMedia)
 {
     throw new System.NotImplementedException();
 }
 /// <summary>
 /// Evento disparado quando uma Locação é Efetuada
 /// </summary>
 /// <param name="locationMedia"></param>
 public void LeaseHold(LocationAggregate locationMedia)
 {
 }