public ApiResponse DeleteById(long id) { CustomerStatusProcessor = new CustomerStatusProcessor(); Response = new ApiResponse(); try { CustomerStatusProcessor.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) { CustomerStatusProcessor = new CustomerStatusProcessor(); Response = new ApiResponse(); try { CustomerStatusProcessor.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); } }