Exemplo n.º 1
0
        /// <summary>
        /// Restful Delete function
        /// </summary>
        /// <typeparam name="TRsp">Result generic type</typeparam>
        /// <param name="api">Get api</param>
        /// <returns></returns>
        public async static Task <PromiseResponse> Delete(string api)
        {
            PromiseResponse response;

            try
            {
                response = await Networker.Delete(api);

                return(response);
            }
            catch (Exception ex)
            {
                NetworkLog.ErrorLog?.Invoke(ex);
                throw new Exception("Please check the Network status!");
            }
        }