public IActionResult Update([FromBody] MovementApplicationDTO movementApplicationDTO) { if (movementApplicationDTO == null) { return(NotFound()); } MovementApplication customer = movementApplicationDTO.ConvertMovementApplicationDTOToMovementApplication(); return(Execute(() => _baseMovementApplicationService.Update(customer))); }
public IActionResult Create([FromBody] MovementApplicationDTO movementApplicationDTO) { if (movementApplicationDTO is null) { throw new ArgumentNullException(nameof(movementApplicationDTO)); } if (movementApplicationDTO == null) { return(NotFound()); } MovementApplication movementApplication = movementApplicationDTO.ConvertMovementApplicationDTOToMovementApplication(); return(Execute(() => _baseMovementApplicationService.Add <Customer>(movementApplication).Id)); }