public async Task <HttpResponseMessage> Delete(int id) { try { await _servicoAppService.RemoveLogic(id, null); NotificationHub.SendMessageNew(string.Format("Servico Excluido com Sucesso {0}", Guid.NewGuid())); return(await Task.Factory.StartNew(() => new HttpResponseMessage { StatusCode = HttpStatusCode.OK })); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }