Exemplo n.º 1
0
        public async Task DeleteComment(DeleteCommentViewModel model)
        {
            try
            {
                if (_projectDal.DeleteComment(model.CommentId))
                {
                    await Clients.All.SendAsync("DeletedComment", JsonConvert.SerializeObject(model));

                    await Clients.Caller.SendAsync("SuccessfullDelete");
                }
            } catch (Exception e)
            {
                await Clients.Caller.SendAsync("ErrorWhileDeleting", e);
            }
        }