public Task <long> DeleteSubAssunto(DeleteSubAssuntoCommand command)
        {
            var requestUrl = CreateRequestUri(string.Format(System.Globalization.CultureInfo.InvariantCulture,
                                                            $"{ResourceSubAssunto}/DeleteSubAssunto"));

            return(Post(requestUrl, command));
        }
Beispiel #2
0
        public async Task <ActionResult <bool> > DeleteSubAssunto(DeleteSubAssuntoCommand command)
        {
            try
            {
                var result = await Mediator.Send(command);

                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }