Beispiel #1
0
        public async Task <IActionResult> Delete(int id)
        {
            ServicesResponse <List <VanderListDTO> > response = await _VanderService.Delete(id);

            if (response.Data == null)
            {
                return(NotFound(response));
            }
            return(Ok());
        }
        public IActionResult Delete(int id)
        {
            var result = VanderService.Delete(id);

            if (result == true)
            {
                return(Ok());
            }
            else
            {
                throw new Exception();
            }
        }