@RequestMapping(value="/{id}",method=RequestMethod.DELETE) @ResponseBody public RestWrapper delete(@PathVariable("id") Integer appDeploymentStatusId,Principal principal){
  RestWrapper restWrapper=null;
  try {
    appDeploymentQueueStatusDAO.delete(appDeploymentStatusId.shortValue());
    restWrapper=new RestWrapper(null,RestWrapper.OK);
    LOGGER.info(RECORDWITHID + appDeploymentStatusId + " deleted from AppDeploymentQueueStatus by User:"+ principal.getName());
  }
 catch (  Exception e) {
    LOGGER.error(e);
    return new RestWrapper(e.getMessage(),RestWrapper.ERROR);
  }
  return restWrapper;
}

@ RequestMapping ( value = "/{id}" , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( "id" ) Integer appDeploymentStatusId , Principal principal ) { RestWrapper restWrapper = null ; try { appDeploymentQueueStatusDAO . delete ( appDeploymentStatusId . shortValue ( ) ) ; restWrapper = new RestWrapper ( null , RestWrapper . OK ) ; LOGGER . info ( RECORDWITHID + appDeploymentStatusId + " deleted from AppDeploymentQueueStatus by User:" + principal . getName ( ) ) ; } catch ( Exception e ) { LOGGER . error ( e ) ; return new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
this method calls deletedeploystatus and fetches a record corresponding to the deploystatusid passed .
