public void Update(UpdateRestaurant.Command update) { CityId = update.CityId; Name = update.Name; Notes = update.Notes; ParkingLot = update.ParkingLot; Tried = update.Tried; Yelp = update.Yelp; }
public async Task UpdateRestaurant(Guid id, UpdateRestaurant.Command command) { command.Id = id; await _mediator.Send(command); }