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

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

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