Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> Delete(int id)
        {
            try
            {
                await _fornecedorAppService.RemoveLogic(id, null);

                NotificationHub.SendMessageNew(string.Format("Cadastro de Fornecedor Excluido com Sucesso {0}", id));
                return(await Task.Factory.StartNew(() => new HttpResponseMessage { StatusCode = HttpStatusCode.OK }));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }