Example #1
0
        public async Task <ActionResult> DeleteAsync(long feedId)
        {
            var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true);

            try
            {
                await Feeds.DeleteAsync(this.Tenant, feedId, meta).ConfigureAwait(true);

                return(this.Ok());
            }
            catch (FeedException ex)
            {
                return(this.Failed(ex.Message, HttpStatusCode.Forbidden));
            }
        }