예제 #1
0
        public ActionResult Delete([FromBody] ClientDto clientDto)
        {
            try
            {
                if (clientDto == null)
                {
                    return(NotFound());
                }

                applicationServiceClient.Remove(clientDto);
                return(Ok());
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
        public ActionResult Delete([FromBody] ClientDTO clienteDTO)
        {
            try
            {
                if (clienteDTO == null)
                {
                    return(NotFound());
                }

                _applicationServiceClient.Remove(clienteDTO);
                return(Ok("Cliente Removido com sucesso!"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
 public async Task <IActionResult> Delete(ClientDto model)
 {
     return(Ok(await _service.Remove(model)));
 }