Exemplo n.º 1
0
        public async Task <IActionResult> OnPostDeleteVideo(string id)
        {
            await chatService.DeleteAllChatsWithArchiveVideoId(id);

            var savedInfo = await profileService.DeleteStream(id);

            if (savedInfo)
            {
                return(new JsonResult(new { Message = JsonResponse.Success.ToString() }));
            }
            return(new JsonResult(new { Message = JsonResponse.Failed.ToString() }));
        }