public LocationsController(IGetLocationsCommand getLocations, IGetSingleLocationCommand getSingleLocation, IInsertLocationCommand insertLocation, IDeleteLocationCommand deleteLocation, IUpdateLocationCommand updateLocation)
 {
     _getLocations      = getLocations;
     _getSingleLocation = getSingleLocation;
     _insertLocation    = insertLocation;
     _deleteLocation    = deleteLocation;
     _updateLocation    = updateLocation;
 }
Exemplo n.º 2
0
 public IActionResult Delete(int id, [FromServices] IDeleteLocationCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(NoContent());
 }