public TicketButtonViewModel(OpenTicketData openTicketData, Entity baseEntity) { _openTicketData = openTicketData; _baseEntityId = baseEntity != null ? baseEntity.Id : 0; OpenTicketCommand = new DelegateCommand<string>(OnOpenTicketCommand); SelectTicketCommand = new DelegateCommand<string>(OnSelectTicket); }
public TicketButtonViewModel(OpenTicketData openTicketData, Resource baseResource) { _openTicketData = openTicketData; _baseResourceId = baseResource != null ? baseResource.Id : 0; OpenTicketCommand = new DelegateCommand<string>(OnOpenTicketCommand); SelectTicketCommand = new DelegateCommand<string>(OnSelectTicket); }