public bool Save() { try { JMMServerBinary.Contract_AnimeGroup_SaveResponse response = JMMServerVM.Instance.clientBinaryHTTP.SaveGroup(this.ToContract(), JMMServerVM.Instance.CurrentUser.JMMUserID.Value); if (!string.IsNullOrEmpty(response.ErrorMessage)) { MessageBox.Show(response.ErrorMessage); return(false); } else { this.Populate(response.AnimeGroup); MainListHelperVM.Instance.AllGroupsDictionary[this.AnimeGroupID.Value] = this; PopulateSerieInfo(MainListHelperVM.Instance.AllGroupsDictionary, MainListHelperVM.Instance.AllSeriesDictionary); return(true); } } catch (Exception ex) { Utils.ShowErrorMessage(ex); return(false); } }
public bool Save() { try { JMMServerBinary.Contract_AnimeGroup_SaveResponse response = JMMServerVM.Instance.clientBinaryHTTP.SaveGroup(this.ToContract(), JMMServerVM.Instance.CurrentUser.JMMUserID); if (!string.IsNullOrEmpty(response.ErrorMessage)) { return(false); } else { this.Populate(response.AnimeGroup); return(true); } } catch (Exception ex) { BaseConfig.MyAnimeLog.Write(ex.ToString()); return(false); } }