public ApiResponse DeleteById(long id) { CheckUpStatusProcessor = new CheckUpStatusProcessor(); Response = new ApiResponse(); try { CheckUpStatusProcessor.Delete(id); Response.text = "Entity was successfully removed from the system."; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong :("; Response.result = false; return(Response); } }
public ApiResponse Delete(List <long> idList) { CheckUpStatusProcessor = new CheckUpStatusProcessor(); Response = new ApiResponse(); try { CheckUpStatusProcessor.Delete(idList); Response.text = "Entity was successfully removed from the system."; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong. Try again later. :)"; Response.result = false; return(Response); } }