private void ChangeTicketStatus() { var alert = UIAlertController.Create(null, null, UIAlertControllerStyle.ActionSheet); if (ticket.Status != "Open") { alert.AddAction(UIAlertAction.Create("Open", UIAlertActionStyle.Default, async(action) => { await RemoteService.ChangeTicketStatus(ticket, "Open"); UpdateEnteringPossibility(); })); } if (ticket.Status != "Pending") { alert.AddAction(UIAlertAction.Create("Pending", UIAlertActionStyle.Default, async(action) => { await RemoteService.ChangeTicketStatus(ticket, "Pending"); UpdateEnteringPossibility(); })); } if (ticket.Status != "Closed") { alert.AddAction(UIAlertAction.Create("Closed", UIAlertActionStyle.Default, async(action) => { await RemoteService.ChangeTicketStatus(ticket, "Closed"); UpdateEnteringPossibility(); })); } alert.AddAction(UIAlertAction.Create("Cancel", UIAlertActionStyle.Cancel, null)); PresentViewController(alert, true, null); }