private async void ProcessSaveComplaintCommand() { // validate we have all fields filled in if (string.IsNullOrEmpty(CurrentComplaint.ComplaintText) || string.IsNullOrEmpty(CurrentComplaint.Subject) || string.IsNullOrEmpty(CurrentComplaint.DOB) || string.IsNullOrEmpty(CurrentComplaint.NIN)) { await _dialog.DisplayAlertAsync("Missing Info", "Please Fill all field Data and set valid date of birth before submit", "OK"); return; } CurrentComplaint.CreatedOn = UtilHelper.GetStringFormatFromDate(DateTime.Now); CurrentComplaint.Category = _currentCategory.Value; CurrentComplaint.Status = "Created"; ApiService api = new ApiService(); await api.AddNewComplaint(CurrentComplaint); // push back with update NavigationParameters navP = new NavigationParameters(); navP.Add("UPDATE", "UPDATE"); await _nav.GoBackAsync(navP); }