public ApiResponse Update(long id, VehicleStatusParam param) { VehicleStatusProcessor = new VehicleStatusProcessor(); Response = new ApiResponse(); try { VehicleStatusProcessor.Update(id, param); Response.text = "Entity was successfully updated"; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong :("; Response.result = false; return(Response); } }
public ApiResponse Update(List <VehicleStatusParam> param) { VehicleStatusProcessor = new VehicleStatusProcessor(); Response = new ApiResponse(); try { VehicleStatusProcessor.Update(param); Response.text = "Entities were successfully updated."; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong :("; Response.result = false; return(Response); } }