Ejemplo n.º 1
0
        public async Task <IActionResult> Update(UpdateVenderDTO DTO)
        {
            ServicesResponse <VanderListDTO> response = await _VanderService.Update(DTO);

            if (response.Data == null)
            {
                return(NotFound(response));
            }
            return(Ok());
        }
        public IActionResult Update([FromRoute] int id, UpdateVenderDTO DTO)
        {
            var result = VanderService.Update(DTO, id);

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