public Task <long> DeleteLocal(DeleteLocalCommand command) { var requestUrl = CreateRequestUri(string.Format(System.Globalization.CultureInfo.InvariantCulture, $"{ResourceLocal}/DeleteLocal")); return(Post(requestUrl, command)); }
public async Task <ActionResult <bool> > DeleteLocal(DeleteLocalCommand command) { try { var result = await Mediator.Send(command); return(result); } catch (Exception e) { Console.WriteLine(e); throw; } }