예제 #1
0
        public async Task <bool> DrinkWine(string sScanCode, string sWine, string sVintage, string sNotes, Guid crids)
        {
            EnsureServiceConnection();
            USR usr;

            usr = await m_api.DrinkWine(sScanCode, sWine, sVintage, sNotes);

            if (usr.Result)
            {
                m_lp.LogEvent(crids, EventType.Verbose, "Successfully added title for {0}", sScanCode);
            }
            else
            {
                m_lp.LogEvent(crids, EventType.Error, "Failed to add title for {0}", sScanCode);
            }

            return(usr.Result);
        }