public async Task <bool> CheckValidation() { try { if (string.IsNullOrEmpty(DisplayName)) { UserDialogs.Instance.Alert("Profile", "Can't blank User Name!.", "OK"); } else if (string.IsNullOrEmpty(emailID)) { UserDialogs.Instance.Alert("Profile", "Can't blank Email-ID!.", "OK"); } else if (string.IsNullOrEmpty(MobileNo)) { UserDialogs.Instance.Alert("Profile", "Can't blank Mobile No.!.", "OK"); } else { EMobileEditUser _ProfileRequest = new EMobileEditUser() { Address1 = Address, Email = emailID, Mobile = MobileNo, Name = DisplayName, Image = null }; EditUserRequest rootObject = new EditUserRequest(); rootObject.EditUser = new EMobileEditUser(); rootObject.EditUser = _ProfileRequest; rootObject.UserID = CrossSettings.Current.GetValueOrDefault("FacultyId", 0); rootObject.UserType = (int)UserType.currentUserType; var result = GeneralMethod.EditProfile(rootObject); if (result) { return(true); } } } catch (Exception ex) { return(false); } return(false); }